<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        let arr = ['张宇', '闫国鑫', '李金嬴', '郑世豪', '杜明轩', '宫瑞']
        let index = Math.floor(Math.random() * arr.length)
        alert(arr[index])
    </script>
</body>

</html>